package com.itheima.ao1threadcase1;
//方式一：继承Thread类，从而开启线程
public class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+" hello thread!");
        }
    }
}
